package flexo.physic.entity;

import flexo.physic.collision.Shape;

public class Sphere extends Entity
{	
	flexo.physic.collision.Sphere collision;
	
	public Sphere(float initialGravity, float mass, float diameter)
	{
		super(initialGravity, mass);
		collision = new flexo.physic.collision.Sphere();
		collision.radius = diameter / 2.0f;
	}

	@Override
	public Shape getCollisionShape()
	{
		// Update collision state
		collision.center.set(this.exclusiveNode.getPosition());
		
		return collision;
	}
}
